#include "Observer1.h"
#include "Observer2.h"
#include "Subject1.h"
#include <iostream>
using std::endl;
using std::cout;
    
int main(int argc, char *argv[])
{
    Subject1 sub;
    Observer1 ob1;
    Observer2 ob2;
    sub.attach(&ob1);
    sub.attach(&ob2);
    

    cout << "status = " << sub.getStatus() << endl;
    
    sub.notify();

    sub.detach(&ob2);
    sub.notify();
    sub.setStatus(21);
    sub.notify();


    

    return 0;
}

